const replyVia = require('../wrapReply');

function plugin(options = { pin: 'unset', serviceUuid: 'unset' }) {
    let { pin, serviceUuid } = options;
    this.add(`${pin}, healthCheck: true, uuid: ${serviceUuid}`, (msg, reply) => {
        replyVia(() => ({ stats: 'ok' }), reply);
    });
    return this;
}

module.exports = plugin;